Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-crypto/material-management

Package Overview
Dependencies
Maintainers
8
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/material-management

The AWS Encryption SDK for JavaScript is a client-side encryption library designed to make it easy for everyone to encrypt and decrypt data using industry standards and best practices. It uses a data format compatible with the AWS Encryption SDKs in other

  • 1.9.1
  • npm
  • Socket score

Version published
Weekly downloads
77K
decreased by-57.72%
Maintainers
8
Weekly downloads
 
Created

What is @aws-crypto/material-management?

@aws-crypto/material-management is a package provided by AWS that offers tools for managing cryptographic materials. It is part of the AWS Encryption SDK and is used to handle encryption keys and cryptographic operations in a secure and efficient manner.

What are @aws-crypto/material-management's main functionalities?

Keyring Management

This feature allows you to create and manage keyrings, which are collections of cryptographic keys used for encryption and decryption. The code sample demonstrates how to create a KMS keyring using AWS KMS keys.

const { KmsKeyringNode } = require('@aws-crypto/client-node');

const keyring = new KmsKeyringNode({
  generatorKeyId: 'arn:aws:kms:us-west-2:123456789012:key/abcd-1234-efgh-5678',
  keyIds: ['arn:aws:kms:us-west-2:123456789012:key/ijkl-9012-mnop-3456']
});

Cryptographic Materials Management

This feature provides tools for managing cryptographic materials, including encryption and decryption contexts. The code sample shows how to create a client with a specified keyring and encryption context.

const { getClient } = require('@aws-crypto/client-node');

const client = getClient({
  keyring,
  encryptionContext: { purpose: 'example' }
});

Encryption and Decryption

This feature allows you to perform encryption and decryption operations using the managed cryptographic materials. The code sample demonstrates how to encrypt and decrypt data using a keyring.

const { encrypt, decrypt } = require('@aws-crypto/client-node');

const plaintext = 'Hello, World!';

async function encryptData() {
  const { result } = await encrypt(keyring, plaintext);
  return result;
}

async function decryptData(ciphertext) {
  const { plaintext } = await decrypt(keyring, ciphertext);
  return plaintext;
}

Other packages similar to @aws-crypto/material-management

FAQs

Package last updated on 07 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc